package com.dragon.mmochat.model;

//玩家离线消息
public class MmochatOfflineMsg {
	private int sendRoleId; // 发送者的roleId
	private String title = ""; // 标题
	private String msg = ""; // 消息内容
	private long updateTime = System.currentTimeMillis(); // 最后更新时间

	public int getSendRoleId() {
		return sendRoleId;
	}

	public void setSendRoleId(int sendRoleId) {
		this.sendRoleId = sendRoleId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

	public void addMsg(String newMsg) {
		msg += newMsg;
		updateTime = System.currentTimeMillis();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
